/* SPDX-License-Identifier: GPL-2.0 */
/*
 * sgm41620.h
 *
 * sgm41620 header file
 *
 * Copyright (c) 2021-2021 Huawei Technologies Co., Ltd.
 *
 * This software is licensed under the terms of the GNU General Public
 * License version 2, as published by the Free Software Foundation, and
 * may be copied, distributed, and modified under those terms.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU General Public License for more details.
 *
 */
#ifndef SGMDEV_H
#define SGMDEV_H

#include "common.h"

extern volatile bool g_pd_isr_flag;
extern volatile bool g_chg_isr_flag;

int sgmdev_i2c_probe(void);

inline bool sgmdev_is_support_pd(void)
{
    return sgm_dev.pd_support;
}

inline bool sgmdev_is_support_ufcs(void)
{
    return sgm_dev.ufcs_support;
}

#endif /* _SGM41620_H_ */

